package com.record.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.record.dao.FarmEnvironmentalMapper;
import com.record.entity.FarmEnvironmental;
import com.record.service.FarmEnvironmentalService;
@Service
public class FarmEnvironmentalServiceImpl implements FarmEnvironmentalService {
 
	@Resource 
	private FarmEnvironmentalMapper farmEnvironmentalMapper;
	@Override
	public FarmEnvironmental selectByPrimaryKey(int id) {
		return farmEnvironmentalMapper.selectByPrimaryKey(id);
	}

	@Override
	public FarmEnvironmental selectByfarmInfoId(int farmId) {
		return farmEnvironmentalMapper.selectByfarmInfoId(farmId);
	}

}
